package com.sk1.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by Administrator on 2017/4/18.
 */
@Entity
public class Version {
    private int id;
    private String versionCode;
    private String versionName;
    private String versionMsg;
    private String updateType;
    private String url;
    private String createDate;
    private String appType;
    private String appSize;
    private String clientType;
    private String modifyDate;
    private String status;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "versionCode")
    public String getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(String versionCode) {
        this.versionCode = versionCode;
    }

    @Basic
    @Column(name = "versionName")
    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    @Basic
    @Column(name = "versionMsg")
    public String getVersionMsg() {
        return versionMsg;
    }

    public void setVersionMsg(String versionMsg) {
        this.versionMsg = versionMsg;
    }

    @Basic
    @Column(name = "updateType")
    public String getUpdateType() {
        return updateType;
    }

    public void setUpdateType(String updateType) {
        this.updateType = updateType;
    }

    @Basic
    @Column(name = "url")
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Basic
    @Column(name = "createDate")
    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "appType")
    public String getAppType() {
        return appType;
    }

    public void setAppType(String appType) {
        this.appType = appType;
    }

    @Basic
    @Column(name = "appSize")
    public String getAppSize() {
        return appSize;
    }

    public void setAppSize(String appSize) {
        this.appSize = appSize;
    }

    @Basic
    @Column(name = "clientType")
    public String getClientType() {
        return clientType;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    @Basic
    @Column(name = "modifyDate")
    public String getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(String modifyDate) {
        this.modifyDate = modifyDate;
    }

    @Basic
    @Column(name = "STATUS")
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Version version = (Version) o;

        if (id != version.id) return false;
        if (versionCode != null ? !versionCode.equals(version.versionCode) : version.versionCode != null) return false;
        if (versionName != null ? !versionName.equals(version.versionName) : version.versionName != null) return false;
        if (versionMsg != null ? !versionMsg.equals(version.versionMsg) : version.versionMsg != null) return false;
        if (updateType != null ? !updateType.equals(version.updateType) : version.updateType != null) return false;
        if (url != null ? !url.equals(version.url) : version.url != null) return false;
        if (createDate != null ? !createDate.equals(version.createDate) : version.createDate != null) return false;
        if (appType != null ? !appType.equals(version.appType) : version.appType != null) return false;
        if (appSize != null ? !appSize.equals(version.appSize) : version.appSize != null) return false;
        if (clientType != null ? !clientType.equals(version.clientType) : version.clientType != null) return false;
        if (modifyDate != null ? !modifyDate.equals(version.modifyDate) : version.modifyDate != null) return false;
        if (status != null ? !status.equals(version.status) : version.status != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (versionCode != null ? versionCode.hashCode() : 0);
        result = 31 * result + (versionName != null ? versionName.hashCode() : 0);
        result = 31 * result + (versionMsg != null ? versionMsg.hashCode() : 0);
        result = 31 * result + (updateType != null ? updateType.hashCode() : 0);
        result = 31 * result + (url != null ? url.hashCode() : 0);
        result = 31 * result + (createDate != null ? createDate.hashCode() : 0);
        result = 31 * result + (appType != null ? appType.hashCode() : 0);
        result = 31 * result + (appSize != null ? appSize.hashCode() : 0);
        result = 31 * result + (clientType != null ? clientType.hashCode() : 0);
        result = 31 * result + (modifyDate != null ? modifyDate.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        return result;
    }
}
